# Makefile in documentation directory
#
# This file is part of DRBD by Philipp Reisner and Lars Ellenberg.
#
# drbd is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# drbd is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with drbd; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

#
# WITH_DRBDMON is defined in Makefile_v9_com so need to be checked
# after Makefile_v9_com is included. The others are referenced in
# Makefile_v9_com_post.
#
TOPDIR = ../..
include $(TOPDIR)/documentation/common/Makefile_v9_com


MANPAGES	= drbdsetup.8 drbd.conf.5 drbd.8 drbdadm.8 drbdmeta.8
MANPAGES += ocf_linbit_drbd.7
MANPAGES += ocf_linbit_drbd-attr.7
ifeq ($(WITH_DRBDMON), yes)
MANPAGES	+= drbdmon.8
endif

ADOC_MANPAGES :=
ADOC_MANPAGES += drbd-lvchange@.service.adoc
ADOC_MANPAGES += drbd-promote@.service.adoc
ADOC_MANPAGES += drbd-reconfigure-suspend-or-error@.service.adoc
ADOC_MANPAGES += drbd-services@.target.adoc
ADOC_MANPAGES += drbd-wait-promotable@.service.adoc
ADOC_MANPAGES += drbd.service.adoc
ADOC_MANPAGES += drbd@.service.adoc
ADOC_MANPAGES += drbd@.target.adoc
ADOC_MANPAGES += ocf.ra@.service.adoc

MANPAGES += $(patsubst %.adoc,%.7,$(ADOC_MANPAGES))

FILES_IN_GIT_ADD = drbd.conf.xml.in drbd.xml \
	drbdadm.xml drbdmeta.xml drbdsetup-options.xml \
	drbdsetup.xml.in drbdmon.xml

FILES_POT = $(FILES_IN_GIT_ADD:=.pot)

FILES_REMOVE_ADD = drbdsetup_*.xml *.pot

include $(TOPDIR)/documentation/common/Makefile_v9_com_post
